﻿using Itech_Run.EntityFrameworkCore.Shared.MigrationHelper;
using Microsoft.EntityFrameworkCore.Design;
using Microsoft.EntityFrameworkCore.Migrations.Design;
using Microsoft.Extensions.DependencyInjection;

namespace Itech_Run.Sys.EntityFrameworkCore.MigrationHelper;
/// <summary>
/// 设计时服务：https://docs.microsoft.com/zh-cn/ef/core/cli/services
/// </summary>
internal class CustomSqlServerDesignTimeServices : IDesignTimeServices
{
    public void ConfigureDesignTimeServices(IServiceCollection serviceCollection)
         => serviceCollection.AddSingleton<ICSharpMigrationOperationGenerator, CustomCSharpMigrationOperationGenerator>();
}
